package sunsun.xiaoli.jiarebang.utils;

import sunsun.xiaoli.jiarebang.R;
import sunsun.xiaoli.jiarebang.app.App;

import java.io.Serializable;

/**
 * 设备类型
 * Created by Administrator on 2017/9/15.
 */

public enum DeviceType implements Serializable {

    DEVICE_GUOLVTONG {//过滤桶

        public int getResource(int type) {
            return (R.drawable.device_chitangguolv);
        }

        public String getName() {
            return App.getInstance().getString(R.string.device_chitangguolv);
        }

        @Override
        public String getDeviceType() {
            return "S01";
        }

        //一键配置时的提示语
        public String getSmartTips() {
            return App.getInstance().getString(R.string.smartconfig_tip);
        }

        //一键配置时的提示背景图
        public int getSmartConfigBg() {
            return (R.drawable.pondteam_smartconfig);
        }

        public String getDidStart() {
            return "S01";
        }

    };

    public abstract int getResource(int type);

    public abstract String getName();

    public abstract String getDeviceType();//设备类型

    public abstract String getSmartTips();

    public abstract int getSmartConfigBg();

    public abstract String getDidStart();//did开头
}
